package com.lxmes.business.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.lxmes.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.lxmes.common.core.domain.BaseEntity;

/**
 * 理化检验对象 nc_physical_chemical_analysis
 *
 * @author lx
 * @date 2023-06-01
 */
@ApiModel(value = "NcPhysicalChemicalAnalysis", description = "理化检验对象")
public class NcPhysicalChemicalAnalysis extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    @ApiModelProperty("${column.columnComment}")
    private Long id;

    /** 公司代码 */
    @Excel(name = "公司代码")
    @ApiModelProperty("公司代码")
    private String factoryCode;

    /** 公司名称 */
    @Excel(name = "公司名称")
    @ApiModelProperty("公司名称")
    private String factoryName;

    /** 样品编号 */
    @Excel(name = "样品编号")
    @ApiModelProperty("样品编号")
    private String sampleNumber;

    /** 物料编号 */
    @Excel(name = "物料编号")
    @ApiModelProperty("物料编号")
    private String materialNumber;

    /** 物料名称 */
    @Excel(name = "物料名称")
    @ApiModelProperty("物料名称")
    private String materialName;

    /** 供应商 */
    @Excel(name = "供应商")
    @ApiModelProperty("供应商")
    private String supplier;

    /** 检测项目 */
    @Excel(name = "检测项目")
    @ApiModelProperty("检测项目")
    private String testItem;

    /** 检测方法 */
    @Excel(name = "检测方法")
    @ApiModelProperty("检测方法")
    private String testMethod;

    /** 检测结果 */
    @Excel(name = "检测结果")
    @ApiModelProperty("检测结果")
    private String testResult;

    /** 参考范围 */
    @Excel(name = "参考范围")
    @ApiModelProperty("参考范围")
    private String referenceRange;

    /** 单位 */
    @Excel(name = "单位")
    @ApiModelProperty("单位")
    private String unit;

    /** 检测人员 */
    @Excel(name = "检测人员")
    @ApiModelProperty("检测人员")
    private String tester;

    /** 检测日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "检测日期", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty("检测日期")
    private Date testDate;

    /** 检测设备 */
    @Excel(name = "检测设备")
    @ApiModelProperty("检测设备")
    private String testEquipment;

    /** 标记 */
    @Excel(name = "标记")
    @ApiModelProperty("标记")
    private String flag;

    /** 审核人员 */
    @Excel(name = "审核人员")
    @ApiModelProperty("审核人员")
    private String auditor;

    /** 审核日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "审核日期", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty("审核日期")
    private Date auditDate;


    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setFactoryCode(String factoryCode)
    {
        this.factoryCode = factoryCode;
    }

    public String getFactoryCode()
    {
        return factoryCode;
    }
    public void setFactoryName(String factoryName)
    {
        this.factoryName = factoryName;
    }

    public String getFactoryName()
    {
        return factoryName;
    }
    public void setSampleNumber(String sampleNumber)
    {
        this.sampleNumber = sampleNumber;
    }

    public String getSampleNumber()
    {
        return sampleNumber;
    }
    public void setMaterialNumber(String materialNumber)
    {
        this.materialNumber = materialNumber;
    }

    public String getMaterialNumber()
    {
        return materialNumber;
    }
    public void setMaterialName(String materialName)
    {
        this.materialName = materialName;
    }

    public String getMaterialName()
    {
        return materialName;
    }
    public void setSupplier(String supplier)
    {
        this.supplier = supplier;
    }

    public String getSupplier()
    {
        return supplier;
    }
    public void setTestItem(String testItem)
    {
        this.testItem = testItem;
    }

    public String getTestItem()
    {
        return testItem;
    }
    public void setTestMethod(String testMethod)
    {
        this.testMethod = testMethod;
    }

    public String getTestMethod()
    {
        return testMethod;
    }
    public void setTestResult(String testResult)
    {
        this.testResult = testResult;
    }

    public String getTestResult()
    {
        return testResult;
    }
    public void setReferenceRange(String referenceRange)
    {
        this.referenceRange = referenceRange;
    }

    public String getReferenceRange()
    {
        return referenceRange;
    }
    public void setUnit(String unit)
    {
        this.unit = unit;
    }

    public String getUnit()
    {
        return unit;
    }
    public void setTester(String tester)
    {
        this.tester = tester;
    }

    public String getTester()
    {
        return tester;
    }
    public void setTestDate(Date testDate)
    {
        this.testDate = testDate;
    }

    public Date getTestDate()
    {
        return testDate;
    }
    public void setTestEquipment(String testEquipment)
    {
        this.testEquipment = testEquipment;
    }

    public String getTestEquipment()
    {
        return testEquipment;
    }
    public void setFlag(String flag)
    {
        this.flag = flag;
    }

    public String getFlag()
    {
        return flag;
    }
    public void setAuditor(String auditor)
    {
        this.auditor = auditor;
    }

    public String getAuditor()
    {
        return auditor;
    }
    public void setAuditDate(Date auditDate)
    {
        this.auditDate = auditDate;
    }

    public Date getAuditDate()
    {
        return auditDate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("factoryCode", getFactoryCode())
            .append("factoryName", getFactoryName())
            .append("sampleNumber", getSampleNumber())
            .append("materialNumber", getMaterialNumber())
            .append("materialName", getMaterialName())
            .append("supplier", getSupplier())
            .append("testItem", getTestItem())
            .append("testMethod", getTestMethod())
            .append("testResult", getTestResult())
            .append("referenceRange", getReferenceRange())
            .append("unit", getUnit())
            .append("tester", getTester())
            .append("testDate", getTestDate())
            .append("testEquipment", getTestEquipment())
            .append("flag", getFlag())
            .append("auditor", getAuditor())
            .append("auditDate", getAuditDate())
            .append("remark", getRemark())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("updateBy", getUpdateBy())
            .toString();
    }
}
